package com.rtwo.service;

import com.rtwo.entity.Department;
import com.rtwo.repository.DepartmentRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;

/**
 * Created by hasee on 2017/4/19.
 */
@Service
public class DepartmentService {

    @Resource
    private DepartmentRepository departmentRepository;

    @Transactional
    public void save(Department department){
        departmentRepository.save(department);
    }

}
